package com.zwj.user.security;

import cn.dev33.satoken.secure.SaSecureUtil;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.digest.DigestUtil;
import com.alibaba.nacos.common.utils.MD5Utils;
import org.apache.commons.codec.digest.Md5Crypt;
import sun.security.provider.MD5;

public class PasswordSecurity {

    private static final String SALT = "666";

    public static String Md5Encoding(String password) {

     return SecureUtil.md5(SecureUtil.md5(password + SALT) + SALT);
    }

}
